package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entities.CommonResult;
import org.springframework.stereotype.Component;

@Component
public class PaymentFeignServiceImpl implements PaymentFeignService {
    @Override
    public CommonResult<Object> getPaymentById(Long id) {
        CommonResult<Object> result = new CommonResult<>(444, "callback, 服务器异常, 请稍后再试");
        return result;
    }

    @Override
    public String paymentInfo_OK(Integer id) {
        return "callback, 服务器异常, 请稍后再试";
    }

    @Override
    public String paymentInfo_Timeout(Integer id) {
        return "callback, 服务器异常, 请稍后再试";
    }
}
